<div class='top' onmousedown='sortable()' title='可以用鼠标拖拽来随意摆放哦'>
  <div class='title'>
    <%= link_to_tool_by_setting @setting %>
  </div>
  <div class='supports'>
  </div>
  <div class='tools'>
    <span id="portalet_<%= @setting.id %>_arrows" style='display:none;'>
      <%= link_to "←", "index", :class => :arrow %>
      <%= link_to "↑", "index", :class => :arrow %>
      <%= link_to "↓", "index", :class => :arrow %>
      <%= link_to "→", "index", :class => :arrow %>
    </span>
    <span class='h'>
      <%= link_to_remote "移除", 
            :confirm => '确认要扔掉这片吐司吗？',
            :url => tools_web_fetion_url(@setting),
            :method => :delete,
            :loading => "Effect.Fade('portalet_#{@setting.id}')",
            :html => {
              :class => :h 
            }            
        %>
    </span>
  </div>
</div>
<div id='tool_<%= @setting.id %>_content' class='content'>
  <% form_tag '', :id => "#{@setting.id}_web_fetion_form" do %>
  <div class='web_fetion'>
    <div>
      <dl id='web_fetion_fetion_mobile' style='<%= current_user.fetion? ? 'display:none' : '' %>'>
        <dt>俺的手机号：</dt>
        <dd>
          <%= text_field_tag :'fetion_sm[mobile]',current_user.mobile , :id => "fetion_sm_#{@setting.id}_mobile" %>
        </dd>
      </dl>
      <dl id='web_fetion_fetion_password' style='<%= current_user.fetion? ? 'display:none' : '' %>'>
        <dt>飞信密码：</dt>
        <dd>
          <%= password_field_tag :'fetion_sm[password]','' ,:id => "fetion_sm_#{@setting.id}_password"%>
        </dd>
      </dl>
      <dl id='fetion_verify' style='display:none;'>
        <dt>校验码：</dt>
        <dd id='fetion_verify_inputs'>
          <%= hidden_field_tag :'verify_code'%>
          <%= hidden_field_tag :'verify_image_id'%>
        </dd>
      </dl>
    </div>
    <dl>
      <dt>飞信好友：</dt>
      <dd>
        <%= select_tag :'fetion_sm[destMobile]' %>
        <%= link_to_update_fetion_friends @setting, :update => :fetion_sm_destMobile %>
      </dd>
    </dl>
    <dl>
      <dt>短信内容：</dt>
      <dd>
        <%= text_area_tag :'fetion_sm[content]','', :onfocus => "this.select()" %>
      </dd>
    </dl>
  </div>  
  <% end %>
  <dl>
    <dd class="center">
      <%= link_to_send_web_fetion_sm @setting %>      
    </dd>
  </dl>
</div>

  